<template>
  <a-button type="primary" @click="handleLogin">登录</a-button>
</template>

<script setup lang="ts">
import useGlobal from '@/hooks/useGlobal'

const { router, proxy } = useGlobal()
const handleLogin = async () => {
  proxy?.$api.login_api.accountDetail()
  await accountDetail()
  router.push({ name: 'home' })
}
</script>

<style lang="less" scoped></style>
